import React,{useContext} from "react";
import { ColorContext } from "./Color";


function ShowArea() {
    const {color} = useContext(ColorContext); //  返回的是<Context.Provider value={} > 中提供的 value
    return (
        <div>
            <h1 style={{color:color}}> 字体颜色 </h1>
        </div>
    )
}

export default ShowArea;